/**
 * Copyright 2009-2019 wacai.com.
 */
package com.code260.ss;

import io.netty.util.concurrent.FastThreadLocal;
import io.netty.util.internal.InternalThreadLocalMap;

/**
 * @author yuyi@wacai.com
 * @since 2019-05-22
 *
 */
public class Demo {

	/**
	 * @param args
	 * @throws IllegalAccessException 
	 */
	public static void main(String[] args) throws IllegalAccessException {
		System.out.println(SizeOfObject.sizeOf(new Integer(1)));
		FastThreadLocal<String> fastThreadLocal = new FastThreadLocal<String>();
		InternalThreadLocalMap internalThreadLocalMap = InternalThreadLocalMap.get();
		fastThreadLocal.set("hello");
		System.out.println(SizeOfObject.fullSizeOf(fastThreadLocal));
		System.out.println("internalThreadLocalMap size=" + SizeOfObject.sizeOf(internalThreadLocalMap));
//		System.out.println("internalThreadLocalMap:" + SizeOfObject.fullSizeOf(internalThreadLocalMap));
		System.out.println(SizeOfObject.sizeOf(new A()));
		System.out.println(SizeOfObject.fullSizeOf(new A()));
	}

}
